home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / mmdf / mmdf-IIb.43 / h / msg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1986-02-01  |  1.4 KB  |  31 lines

  1. struct msg_struct                /* Structure for sorting files        */
  2. {
  3.     time_t  mg_time;             /* Creation time of message           */
  4. #define LARGESIZE 100000         /* threshold for large message        */
  5. #ifdef LARGESIZE
  6.     char    mg_large;            /* message is over-sized              */
  7. #endif
  8.     char    mg_stat;             /* options                            */
  9.     char    mg_mname[MSGNSIZE];  /* Filename                           */
  10.     char    mg_null;             /* Null for terminating string        */
  11. };
  12. typedef struct msg_struct Msg;
  13.  
  14. /** The following bits are use in mg_stat **/
  15. #define ADR_CITE   0001           /* When a message is determined to be */
  16.                   /* undeliverable to some addressee(s),*/
  17.                   /* MMDF notifies the sender (if a     */
  18.                   /* return address was given) and an   */
  19.                   /* entire copy of the message is      */
  20.                   /* included in the return, unless this*/
  21.                   /* flag is set, in which case only    */
  22.                   /* a "citation" is returned.          */
  23. #define    ADR_NORET  0002          /* Do NOT return to sender on error   */
  24. #define    ADR_NOWARN 0004          /* Do NOT send non-delivery warnings  */
  25. #define    ADR_WARNED 0010          /* Warning has been sent         */
  26.  
  27. #define msg_cite(val)   (val&ADR_CITE)
  28. #define msg_noret(val)    (val&ADR_NORET)
  29. #define msg_nowarn(val)    (val&ADR_NOWARN)
  30. #define msg_warned(val)    (val&ADR_WARNED)
  31.